/***************************************************
> Copyright (C) 2024 ==KINGYI== All rights reserved.
> File Name: 7.29作业3.c
> Author:
> Mail:
> Created Time: Mon 29 Jul 2024 02:27:53 AM PDT
***************************************************/
#include <string.h>
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>

/*int main()
{
  char a[50] = {0};
  char b[20] = "hgfdswerfgh";
  int num=0;
  memcpy(a, b, 20);
  printf("a=%s\n", a);
  return 0;
}*/

int  main()
{
  int arr[5] = {2, 5, 7, 8, 1};
  int num[5]={0};
  memmove(num, arr,sizeof(arr));
  for (int i = 0; i < 5; i++)
  {
    printf("%d", num[i]);
  
  }  return 0;
}
